package com.recipe.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.recipe.common.config.RedisUtil;
import com.recipe.entity.DishStep;
import com.recipe.mapper.DishSourceMapper;
import com.recipe.entity.DishSource;
import com.recipe.service.DishSourceService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;

/**
 * (DishSource)表服务实现类
 *
 * @author makejava
 * @since 2024-06-24 13:51:33
 */
@Service("dishSourceService")
@RequiredArgsConstructor
public class DishSourceServiceImpl extends ServiceImpl<DishSourceMapper, DishSource> implements DishSourceService {




    @Override
    public List<DishSource> getByDishId(Long id) {

        LambdaQueryWrapper<DishSource> wrapper=new LambdaQueryWrapper<>();
        wrapper.eq(DishSource::getDishid,id);
        List<DishSource> list = this.list(wrapper);


        return list;

    }
}

